// registry.js
const componentRegistry = {};

// 注册组件
export function regOvComponent(library, componentName, replacement) {
    if (!componentRegistry[library]) {
        componentRegistry[library] = {};
    }
    componentRegistry[library][componentName] = replacement;
}

// 获取替换组件
export function getComponent(library, componentName) {
    return componentRegistry[library]?.[componentName] || null;
}
